package yuyue

import nafos.server.BizException
import nafos.server.LatchCountManager

fun main() {
//    for (i in 0..200){
//        Thread{
//            test2()
//        }.start()
//        Thread{
//            test1()
//        }.start()
//
//    }
//    val a = BizException.LOGIN_SESSION_TIME_OUT
//    val b = BizException.PARAM_FORMAT_ERROR
//    println(BizException.LOGIN_SESSION_TIME_OUT.stackTrace[1])
//    println(BizException.PARAM_FORMAT_ERROR.stackTrace[1])
    LatchCountManager.start { println(1) }
    Thread.sleep(2000)
}

fun test1(){
    printError(BizException.LOGIN_SESSION_TIME_OUT)
}

fun test2(){
    printError(BizException.PARAM_FORMAT_ERROR)
}

fun printError(e:BizException){
    println(e.message+"__"+e.stackTrace[1])
}